package org.jeecg.modules.order.job;


import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.order.service.IWlhyOrderService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class OrderExpireJobHandler {
    @Resource
    IWlhyOrderService wlhyOrderService;

    @XxlJob(value = "OrderExpireJob")
    public ReturnT<String> waybillExpireJob(String params) {
        log.info("订单过期定时任务,执行..{}",params);
        wlhyOrderService.expireJobHandler();
        log.info("订单过期定时任务,执行完毕");
        return ReturnT.SUCCESS;
    }

}
